home *** CD-ROM | disk | FTP | other *** search
/ Shareware Extravaganza - Disc 1 / ShareWare Extravaganza 1 of 4 (The Ultimate Shareware Company).iso / grprogs / mac2gem.exe / ARGEND.H < prev    next >
Text File  |  1987-09-11  |  989b  |  39 lines

  1. /* argend.h: @(#) End sandwichbegun with argbegin.h, see argparse.h */
  2. /* by Alexander B. Abacus */
  3.  
  4.       default:
  5.         fprintf
  6.         ( stderr
  7.         , " Stop. Key letter \'%c\' rejected.\n"
  8.         , *a0.keyPointer
  9.         );
  10.         ArgTutor( a0.tutorial );
  11.         break;
  12.       } /* switch */
  13.     } /* if not double trigger */
  14.       } /* for all characters in argument */
  15.       while ( a0.keyPointer != (char *) 0 );
  16.     } /* if key or not a key */
  17.   } /* for all arguments */
  18.  
  19.   a0.noOfPositionals = a0.nextPositional - 1;
  20.  
  21.   if
  22.   (  ( a0.minPositionals  >= 0 )
  23.   && ( a0.noOfPositionals < a0.minPositionals )
  24.   )
  25.   { /* if(too few positionals) */
  26.     fprintf
  27.     ( stderr
  28.     , " Stop. Minimum %d positional arguments, %d supplied.\n"
  29.     , a0.minPositionals
  30.     , a0.noOfPositionals
  31.     );
  32.     ArgTutor( a0.tutorial );
  33.   } /* if(too few positionals) */
  34.  
  35.   (* a0.ptrArgCount) = a0.noOfPositionals;
  36. } /* End block begun with argbegin.h */
  37.  
  38. /* argend.h: End of file. */
  39.